// channel和newList组件的reducer
import user from './user';
// combineReducers 合并各个reducer
import { combineReducers } from 'redux';
// 持久化
import { persistReducer } from 'redux-persist';
import AsyncStorage from '@react-native-community/async-storage';
const userConfig = {
  key: 'user',
  storage: AsyncStorage,
};
const rootReducer = combineReducers({
  user: persistReducer(userConfig, user),
});
export default rootReducer;
